package com.quasar.hpatient.onInterface;

import com.quasar.hpatient.model.httpmodel.AnotherResult;
import com.quasar.hpatient.model.httpmodel.DataStateResult;
import com.quasar.hpatient.model.medicalmodel.MedicationRecordData;
import com.quasar.hpatient.model.medicalmodel.OnedayMedicationData;

/**
 * author : 许建宏
 * Date: 2017/11/15 0015
 * View: 服药
 */

public interface OnMedicationListener {
    //更改回调
    void onSuccess(AnotherResult<OnedayMedicationData> data);
    //失败回调
    void onError(String msg);
    //界面更新
    void onRefreshUI();

    //一键服药
    void onAddMutiTakeMedicine(DataStateResult dataStateResult);
    //一种服药信息提交
    void AddOneTakeMedicine(DataStateResult dataStateResult);

    //服药记录日期查询
    //服药单日期查询
    void onSuccessMedicationRecordDate(AnotherResult<MedicationRecordData> data);

    //查询上次服药记录信息
    void OnSeccessLast(AnotherResult<OnedayMedicationData> data);

    //查询下次服药信息
    void OnSeccessNext(AnotherResult<OnedayMedicationData> data);
}
